#ifndef BORROW_BOOK_H
#define BORROW_BOOK_H
#include"book_sql.h"
#include <QWidget>
#include <QStandardItemModel>
#include <QWidget>
#include "readersql.h"
#include <QSqlTableModel>
#include"QTableWidgetItem"
#include <QSortFilterProxyModel>
#include<QSqlRecord>
#include"login.h"
#include"global.h"
#include<QTime>
#include<QDate>
namespace Ui {
class Borrow_book;
}

class Borrow_book : public QWidget
{
    Q_OBJECT

public:
    explicit Borrow_book(QWidget *parent = nullptr);
    ~Borrow_book();
    QSqlTableModel *model,*model_borrowed;
    book_sql * bok;
    QList<QTableWidgetItem*> returnJudge ;
    int cnt=0;//存储多少次续借
private slots:
    void on_btn_return_clicked();

    void on_add_borrow_time_clicked();

    void on_btn_borrow_clicked();

private:
    Ui::Borrow_book *ui;
};

#endif // BORROW_BOOK_H
